home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98a.txt
/
000137_icon-group-sender _Mon Mar 16 12:30:37 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id MAA06437
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 16 Mar 1998 12:30:37 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA19556; Mon, 16 Mar 1998 12:30:36 -0700
Message-Id: <350D4D2D.30DC@gte.net>
Date: Mon, 16 Mar 1998 10:02:53 -0600
From: Mark Evans <evans@gte.net>
Reply-To: evans@gte.net
Organization: None
X-Mailer: Mozilla 3.01 (Win95; I)
Mime-Version: 1.0
To: icon-group@optima.CS.Arizona.EDU
Subject: Re: Letter Probabilities
References: <199803151331.GAA18413@orpheus.gemini.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 722
Finally someone answered my question! Thanks, Steve!
If your alphabet has three letters {A,B,C} with probabilities
{0.50,0.20,0.30} respectively then a table like this --
A 0.5
C 0.3
B 0.2
can be used to make random text. I am not arguing that it's more
elegant than the Icon ?string construct as everyone seems to imagine.
The random number x in [0,1] has uniform distribution. By turns,
subtract each number in the table until x <= 0, and there is your
letter. This technique would not work if x had nonuniform distribution.
For the record I suppose I should say that I like the generator string
idea better myself, thought of it before getting on the newgroup here,
and still think highly of it.
Mark